﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Model;

namespace SalomonWebsite.UC
{
    public partial class ImgFocus : System.Web.UI.UserControl
    {
        protected string strCon = Global.Connection;
        public string ImageWeb = Global.ImageWeb;
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                GetFocusSlideList(strCon);
            }
        }

        protected void GetFocusSlideList(string strCon) 
        {
            DataTable dt = new Bll.FocusSlide().GetFocusList(strCon);
            if (dt != null && dt.Rows.Count > 0) 
            {
                this.repFocusList.DataSource = dt.DefaultView;
                this.repFocusList.DataBind();
                repFocusList.Dispose();
            }
        }
    }
}